package com.dotc.patterndemo.structure.decorator;


import android.util.Log;

import com.dotc.patterndemo.entity.Bag;

/**
 * 加固功能
 */
public class ReinforceBagDecorator extends BagDecorator {
    public ReinforceBagDecorator(Bag bag) {
        super(bag);
    }

    public void pack() {
        super.pack();  //调用原有业务方法
        reinforce();
    }

    //加固包装
    public void reinforce() {
//        System.out.println("------");
//        System.out.println("加固了包装");
        Log.d("LUO","------");
        Log.d("LUO","加固了包装");
    }
}
